package com.komorebi.friends.model.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName team
 */
@TableName(value ="team")
@Data
public class Team implements Serializable {
    /**
     * 队伍ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 队伍名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * 队伍描述
     */
    @TableField(value = "description")
    private String description;

    /**
     * 队伍最大人数
     */
    @TableField(value = "maxNum")
    private Integer maxNum;

    /**
     * 队伍过期时间
     */
    @TableField(value = "expireTime")
    private Date expireTime;

    /**
     * 队长ID
     */
    @TableField(value = "userId")
    private Long userId;

    /**
     * 队伍状态(0:公开 1：私有 2：加密)
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 队伍密码
     */
    @TableField(value = "password")
    private String password;

    /**
     * 创建时间
     */
    @TableField(value = "createTime")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "updateTime")
    private Date updateTime;

    /**
     * 是否删除(0:未删除 1：已删除)
     */
    @TableField(value = "isDelete")
    @TableLogic
    private Integer isDelete;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}